package inet.app.tuvi.util;


import java.lang.reflect.Field;
import android.content.Context;

public class ResourceUtil {
	
	public static int getResId(String variableName, Context context, Class<?> c) {

		try {
			Field idField = c.getDeclaredField(variableName);
			return idField.getInt(idField);
		} catch (Exception e) {
			SmartLog.e(e.toString());
			return -1;
		}
	}
}
